<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
		<script>
			//异步函数
			async function query() {
				let res = await axios.post("users", {
					page: 1,
					pageSize: 10
				}, {
					baseURL: "http://localhost:8080"
				})

				if (res.status == 200) {
					let rs = res.data;
					console.log("rs>>", rs);
				}
			
				
				console.log("加async 按照顺序执行")
			}

			query();
		</script>
	</head>
	<body>
	</body>
</html>